<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title><g:message code="customer.nav.search"/></title>
</head>
<body>
<div class="nav">
    <span class="menuButton">
        <g:link class="list" action="list"><g:message code="customer.nav.list"/></g:link>
        <g:link class="create" action="create"><g:message code="customer.nav.create"/></g:link>
    </span>
</div>
<div class="body">
    <h1><g:message code="customer.nav.search"/></h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <g:form action="search">
        <div class="dialog">
            <table>
                <tbody>

                <tr class="prop">
                    <td valign="top" class="name">
                        <label for="id">${message(code: 'customer.table.query')}:</label>
                    </td>
                    <td valign="top" class="value ${hasErrors(bean: customerInstance, field: 'id', 'errors')}">
                        <input type="text" id="query" name="query" value="${fieldValue(bean: params, field: 'query')}"/>
                    </td>
                </tr>

                <%--<tr class="prop">
                    <td valign="top" class="name">
                        <label for="id">${message(code: 'customer.table.id')}:</label>
                    </td>
                    <td valign="top" class="value ${hasErrors(bean: customerInstance, field: 'id', 'errors')}">
                        <input type="text" id="id" name="id" value="${fieldValue(bean: params, field: 'id')}"/>
                    </td>
                </tr>

                <tr class="prop">
                    <td valign="top" class="name">
                        <label for="handPhone">${message(code: 'customer.table.phone')}:</label>
                    </td>
                    <td valign="top" class="value ${hasErrors(bean: customerInstance, field: 'handPhone', 'errors')}">
                        <input type="text" id="handPhone" name="handPhone" value="${fieldValue(bean: params, field: 'handPhone')}"/>
                    </td>
                </tr>

                <tr class="prop">
                    <td valign="top" class="name">
                        <label for="name">${message(code: 'customer.table.name')}:</label>
                    </td>
                    <td valign="top" class="value ${hasErrors(bean: customerInstance, field: 'name', 'errors')}">
                        <input type="text" id="name" name="name" value="${fieldValue(bean: params, field: 'name')}"/>
                    </td>
                </tr>--%>
                </tbody>
            </table>
        </div>
        <div class="buttons">
            <span class="button"><g:actionSubmit class="save" action="search" value="${message(code:'customer.nav.search')}"/></span>
            <span class="button"><input type="reset" value="${message(code:'login.login.button.reset')}"></span>
        </div>
    </g:form>
    <g:render template="list" model="[customerInstanceList:customerInstanceList]"/>

</div>
</body>
</html>
